<template>
  <div>
    <div class="header">
      <input
        v-model="searchValue"
        @blur="search"
        type="text"
        :placeholder="valueS"
        @click="isho"
      />
    </div>
  </div>
</template>

<script>
import axios from "axios";
import { ref, computed, onMounted } from "vue";
import { useStore } from "vuex";
export default {
  props: ["valueS"],
  setup(p, { emit }) {
    let obj = ref([]);
    let store = useStore();

    let searchValue = ref(""); // 搜索

    function search() {
      emit("search", searchValue.value);
    }
    function isho() {}
    return {
      obj,
      search,
      isho,
      searchValue,
    };
  },
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 60px;
  background-color: rgb(241, 41, 41);
  display: flex;
  align-items: center;
  justify-content: center;

  input {
    width: 85%;
    height: 40px;
    border-radius: 25px;
    border: 0;
    padding-left: 20px;
  }
}
</style>
